package edu.ccut.saturn.component.utils;

import java.util.Collection;
import java.util.Set;

public interface ISaturnCache {
	
	public boolean containsKey(String key);
	
	public Object get(String key);
	
	public void put(String key, Object value);
	
	public void replace(String key, Object value);
	
	public Set<String> keySet();
	
	/**
	 * 移出缓存数据
	 * @param key
	 * @return
	 */
	public Object remove(String key);	
	
	/**
	 * 删除所有缓存内的数据
	 * @return
	 */
	public boolean clear();
	
	/**
	 * 缓存的所有value的集合
	 * @return
	 */
	public Collection<Object> values();
}
